<?php
/**
 * @file /Db/Adapter.php
 *
 * Abstract adapter for database representation.
 *
 * Db_Adapter is only an abstract class that defines some functionality
 * that is envolved in every kind of database.
 *
 * http://code.google.com/p/rpd/wiki/Adapter.php
 *
 * New BSD License
 * \n
 * Copyright (c) 2010 Rpd-Team
 *
 * @namespace  rpd
 * @since      0.0.1
 * @version    0.0.1
 */

/**
 *
 */

abstract class Db_Adapter {
	protected $_link = NULL;

	protected function _escape($statement, $values, $function)
	{
		if ($values !== NULL)
		{
			$values = array_map($function, $values);
			return vsprintf($statement, $values);
		}

		return $statement;
	}
}

?>